Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elixir generation support #156

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

elisa6
Copy link

@elisa6 elisa6 commented May 11, 2023

This PR adds Elixir generation support using the elixir_xdr dependency which is used by the currently maintained and complete Stellar SDK for Elixir - https://github.com/kommitters/stellar_sdk.

We are excited to contribute to this great tool and include the generated files in our stellar_base library.

Thank you.

elisa6 and others added 13 commits April 27, 2023 09:08
* Modify the enum type generated
* Generate enum types by files

Co-authored-by: Juan Esteban Nieto Cifuentes <[email protected]>
* Add union type

* Resolve comments
* Add function to create number types

* Remove unnecessary function

* Add condition for union type
Co-authored-by: Juan Esteban Nieto Cifuentes <[email protected]>
* Generate typedef types part 2
* Add Optional function
* Remove unnecessary file
* Generate simple typedef
* Remove unnecessary function

---------

Co-authored-by: jenietoc <[email protected]>
* Create hash for constants
* Fix generate the list from struct and union
* Fix optional types
* Fix lists without max length

---------

Co-authored-by: jenietoc <[email protected]>
* Fix module name and remove repeat alias and types
* Fix repeat types in the union
* Define a map when the arms are integers in unions
* Include the Fixed prefix when is a fixed list
* Include max length in the module and file name
* Fix create a file twice
* Fix alias
* Fix union type
* Change name in uint typedef
* Fix number types
* Fix order validation

---------

Co-authored-by: jenietoc <[email protected]>
* Fix opaque type
* Fix array type
* Fix typo
* Send the second arg to opaque types
* Remove condition
* Add a comma in the separation of arms in unions
* Remove unnecessary commas in the alias of unions
* Search constant value for opaque types
* Change type name in struct types
* Fix errors with reserved words in struct types
* Fix alias
* Refactor code
* Fix String types
* Fix value name in union types
* Fix called function
* Modify the params name
* Remove validation
* Refactor function

---------

Co-authored-by: jenietoc <[email protected]>
* Fix union arms

* Fix problems with consts

---------

Co-authored-by: jenietoc <[email protected]>
* Fix union bug
* Refactor some code
* New changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants